.class Lcom/waiqin365/lightapp/chexiao/gq;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/gq;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    const/16 v6, 0x8

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/gq;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/visit/a/a/ao;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const v3, 0x7f08056b

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    if-lez v2, :cond_3

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "("

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v4, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v4, ")"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    :goto_1
    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, "\uff01"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    if-eqz v3, :cond_1

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    if-lez v3, :cond_1

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->c:Ljava/lang/String;

    :cond_1
    invoke-virtual {v1}, Lcom/waiqin365/lightapp/visit/a/a/ao;->b()Z

    move-result v3

    if-eqz v3, :cond_a

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->b:Ljava/lang/String;

    if-eqz v3, :cond_8

    const-string/jumbo v3, "1"

    iget-object v4, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_8

    iget-object v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    if-eqz v2, :cond_2

    iget v2, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->d:I

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->g(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Z

    move-result v3

    if-eqz v3, :cond_5

    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v3, v2, :cond_4

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-interface {v2, v5, v1}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    :cond_2
    :goto_2
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_7

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->j(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_3
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->c(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/chexiao/a/ab;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/a/ab;->notifyDataSetChanged()V

    :goto_4
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    goto/16 :goto_0

    :cond_3
    const-string/jumbo v2, ""

    goto/16 :goto_1

    :cond_4
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->clear()V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-interface {v2, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_2

    :cond_5
    iget-object v3, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v3, v2, :cond_6

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    :goto_5
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v2

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->e:Ljava/util/ArrayList;

    invoke-interface {v2, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_2

    :cond_6
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->b(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    goto :goto_5

    :cond_7
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v6}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->j(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V

    goto :goto_3

    :cond_8
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-lez v3, :cond_9

    const/4 v1, 0x1

    invoke-static {v0, v2, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_4

    :cond_9
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->j(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_4

    :cond_a
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->h(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_b

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_4

    :cond_b
    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v2

    iget v1, v1, Lcom/waiqin365/lightapp/visit/a/a/ao;->a:I

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->i(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;->j(Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordActivity;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_4

    nop

    :pswitch_data_0
    .packed-switch 0x2c2
        :pswitch_0
    .end packed-switch
.end method
